package com.java.comprehensive.design.building_modelling.singleton_pattern;

import java.io.Serializable;

public class SingletonDemo_5 implements Serializable {

    private static final long serialVersionUID = -4223142268497206841L;

    private SingletonDemo_5() {
    }

    private static class SingletonHolder {
        private static final SingletonDemo_5 INSTANCE = new SingletonDemo_5();
    }

    public static SingletonDemo_5 getInstance() {
        return SingletonHolder.INSTANCE;
    }

}
